home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume8 / se / part06 < prev    next >
Encoding:
Internet Message Format  |  1987-01-25  |  31.7 KB

  1. Subject:  v08i006:  Georgia Tech 'se' Screen Editor
  2. Newsgroups: mod.sources
  3. Approved: mirror!rs
  4.  
  5. Submitted by: emoryu1!arnold (Arnold D. Robbins)
  6. Mod.sources: Volume 8, Issue 6
  7. Archive-name: se/Part06
  8.  
  9.  
  10. Here is the second release of the Georgia Tech Screen Editor, 'se'.
  11. There were enough changes that a whole new posting is warranted.
  12.  
  13. Major Changes:
  14.     All Georgia Tech specific stuff removed.
  15.     It understands window size changes on 4.3BSD and ATT Unix PC/3B1
  16.     Support for the shared library on the ATT Unix PC/3B1
  17.     Considerable source code reorganization in certain files.
  18.  
  19. Enjoy,
  20.  
  21. Arnold Robbins
  22.  
  23. #! /bin/sh
  24. # This is a shell archive, meaning:
  25. # 1. Remove everything above the #! /bin/sh line.
  26. # 2. Save the resulting text in a file.
  27. # 3. Execute the file with /bin/sh (not csh) to create the files:
  28. #    README
  29. #    Makefile
  30. #    Install
  31. #    a
  32. #    abt
  33. #    ah
  34. #    arg2
  35. #    args
  36. #    b
  37. #    bang
  38. #    bug
  39. #    c
  40. #    cc
  41. #    ccmisc
  42. #    chardel
  43. #    charins
  44. #    colon
  45. #    com
  46. #    comdir
  47. #    comsyn
  48. #    d
  49. #    detab.c
  50. #    dir
  51. #    e
  52. #    eh
  53. #    elp
  54. #    equal
  55. #    f
  56. #    g
  57. #    h
  58. #    i
  59. #    j
  60. #    k
  61. #    l
  62. #    list
  63. #    ln
  64. #    m
  65. #    motion
  66. #    n
  67. export PATH; PATH=/bin:$PATH
  68. if test ! -d 'se_h'
  69. then
  70.     echo shar: creating directory "'se_h'"
  71.     mkdir 'se_h'
  72. fi
  73. echo shar: entering directory "'se_h'"
  74. cd 'se_h'
  75. echo shar: extracting "'README'" '(728 characters)'
  76. if test -f 'README'
  77. then
  78.     echo shar: will not over-write existing file "'README'"
  79. else
  80. cat << \SHAR_EOF > 'README'
  81. # $Header: README,v 1.2 86/10/07 15:17:34 arnold Exp $
  82. # $Log:    README,v $
  83. # Revision 1.2  86/10/07  15:17:34  arnold
  84. # Swt help files removed, so no longer described.
  85. # Revision 1.1  86/05/06  14:04:26  osadr
  86. # Initial revision
  87. README:
  88.  
  89. This directory contains the help files for the Georgia Tech Software Tools/UNIX
  90. screen editor Se.
  91.  
  92. The files should be installed in the directory /usr/local/lib/se_h for se in
  93. order for se to find them. File names must be in lower case, since dohelp() maps
  94. the file name into all lower case. (On pr1mes, case is not significant in
  95. file names, so the original ratfor version did not have to do this.)
  96.  
  97. Arnold Robbins
  98. formerly of Georgia Tech
  99. Now with Emory University
  100. 10/86
  101. SHAR_EOF
  102. fi # end of overwriting check
  103. echo shar: extracting "'Makefile'" '(1093 characters)'
  104. if test -f 'Makefile'
  105. then
  106.     echo shar: will not over-write existing file "'Makefile'"
  107. else
  108. cat << \SHAR_EOF > 'Makefile'
  109. # $Header: Makefile,v 1.2 86/10/07 15:15:04 arnold Exp $
  110. # $Log:    Makefile,v $
  111. # Revision 1.2  86/10/07  15:15:04  arnold
  112. # Updated to reflect current set of help files.
  113. # Revision 1.1  86/05/06  14:04:17  osadr
  114. # Initial revision
  115. # makefile for se help scripts
  116.  
  117. DOCS= README
  118.  
  119. FILES= a abt ah arg2 args b bang bug c cc ccmisc chardel charins colon \
  120.     com comdir comsyn d dir e eh elp equal f g h i j k l list ln m \
  121.     motion n o o- oa oc od of og oh oi ok ol olm om os ot ou ov ow \
  122.     ox oy oz p pat patex q quote r rpt s scan serc shell specl t \
  123.     termchar tilde u v w x y z
  124.  
  125. # destination for final    version    of help    scripts.
  126. INSTALL=/usr/local/lib/se_h
  127.  
  128. install: existsall detab
  129.     ./Install $(INSTALL) $(FILES)
  130.  
  131. existsall: $(FILES) $(DOCS) Install
  132.     @echo this message indicates all the files exist, otherwise make would die.
  133.  
  134. detab: detab.c
  135.     cc -O -o detab detab.c
  136.  
  137. clean:
  138.     rm -f detab print2
  139.  
  140. clobber: clean
  141.  
  142.  
  143. print:
  144.     prt $(DOCS) Makefile Install $(FILES) | lpr -b 'se help'
  145.     touch print2
  146.  
  147. print2:    $(DOCS)    Makefile Install $(FILES)
  148.     prt $? | lpr -b    'new se    help'
  149.     touch print2
  150. SHAR_EOF
  151. fi # end of overwriting check
  152. echo shar: extracting "'Install'" '(678 characters)'
  153. if test -f 'Install'
  154. then
  155.     echo shar: will not over-write existing file "'Install'"
  156. else
  157. cat << \SHAR_EOF > 'Install'
  158. #! /bin/sh
  159. # $Header: Install,v 1.2 86/10/07 15:09:08 arnold Exp $
  160. # $Log:    Install,v $
  161. # Revision 1.2  86/10/07  15:09:08  arnold
  162. # Fixed to make the help directory and use relative paths.
  163. # Revision 1.1  86/05/06  14:04:04  osadr
  164. # Initial revision
  165. : Install -- put se help files into their proper directory.
  166. :         This program is called from the makefile.
  167.  
  168. INSTALL=$1
  169. shift
  170. umask 022
  171.  
  172. if [ ! -d $INSTALL ]
  173. then
  174.     echo making directory $INSTLL
  175.     if mkdir $INSTALL
  176.     then
  177.         :
  178.     else
  179.         echo could not mkdir $INSTALL
  180.         exit 1
  181.     fi
  182. fi
  183.  
  184. for i in $*
  185. do
  186.     echo installing $i
  187.     ./detab < $i > $INSTALL/$i
  188. done
  189.  
  190. : we really should do some error checking, but what the heck.
  191. SHAR_EOF
  192. chmod +x 'Install'
  193. fi # end of overwriting check
  194. echo shar: extracting "'a'" '(793 characters)'
  195. if test -f 'a'
  196. then
  197.     echo shar: will not over-write existing file "'a'"
  198. else
  199. cat << \SHAR_EOF > 'a'
  200.          a    -- Append command
  201.  
  202.               default range           syntax
  203.                           .           a
  204.  
  205.         "a" is for appending new lines of text after a given line.  If
  206.         no line number is typed before the "a", text will be  appended
  207.         after  the  current  line.  The last line appended becomes the
  208.         current line.  To signal the end of  the  appended  text,  you
  209.         type a "."  on a line by itself.  Control characters "f", "v",
  210.         "l",  and  "k"  work differently for "a" command than for "v".
  211.         "a:"  works as a one line append (i.e. anything following  the
  212.         colon is appended after the current line).
  213.  
  214.         To return to the command directory, type "hcomdir."
  215.         See also:  "hcc" (control characters) and "hc" (change).
  216. SHAR_EOF
  217. fi # end of overwriting check
  218. echo shar: extracting "'abt'" '(599 characters)'
  219. if test -f 'abt'
  220. then
  221.     echo shar: will not over-write existing file "'abt'"
  222. else
  223. cat << \SHAR_EOF > 'abt'
  224.                                Abort character                                
  225.  
  226.         CTRL-F ("Funny Return") character  is  used  to  abort  a  "v"
  227.         command  before  all  the  specified lines have been modified.
  228.         Typing it causes the current line to be restored to its  state
  229.         of  before  the  "v" command was begun, and causes a return to
  230.         the editor's command level.
  231.  
  232.  
  233.         Type "hv" for a description of the "v" command.
  234.         Type "hrpt" for CTRL-F's meaning if in append or command mode.
  235.         Type "htermchar" for info about other termination characters.
  236. SHAR_EOF
  237. fi # end of overwriting check
  238. echo shar: extracting "'ah'" '(142 characters)'
  239. if test -f 'ah'
  240. then
  241.     echo shar: will not over-write existing file "'ah'"
  242. else
  243. cat << \SHAR_EOF > 'ah'
  244.  
  245.           If you're running Berkeley Unix, and you're bored
  246.           Type the following command for something enjoyable:
  247.  
  248.           !rogue
  249.  
  250. SHAR_EOF
  251. fi # end of overwriting check
  252. echo shar: extracting "'arg2'" '(917 characters)'
  253. if test -f 'arg2'
  254. then
  255.     echo shar: will not over-write existing file "'arg2'"
  256. else
  257. cat << \SHAR_EOF > 'arg2'
  258.                                Arguments (cont)
  259.  
  260.         Once the terminal type  is  established,  the  remaining  arg-
  261.         uments  are  interpreted  thus:  if the argument begins with a
  262.         "-", the rest of it is interpreted as though it appeared after
  263.         the "o" in an option command.  For  example,  an  argument  of
  264.         "-w10"  acts  as  a command "ow10".  On the other hand, if the
  265.         argument does not begin with "-", it is interpreted as a  file
  266.         name  (path-  name).   The  named  file  is read into the edit
  267.         buffer, and its name becomes the  remembered  file  name.   If
  268.         more  than one file is named, the edit buffer will contain the
  269.         contents of all the files.  If  an  error is encountered while
  270.         interpreting arguments (file not found, illegal  option),  the
  271.         remainder will be ignored.
  272.  
  273.         For invoking command syntax, type "hargs".
  274. SHAR_EOF
  275. fi # end of overwriting check
  276. echo shar: extracting "'args'" '(425 characters)'
  277. if test -f 'args'
  278. then
  279.     echo shar: will not over-write existing file "'args'"
  280. else
  281. cat << \SHAR_EOF > 'args'
  282.                               Argument Handling
  283.  
  284.         The syntax for 'se's invoking command is usually given as
  285.             se {-<option> | <pathname>}
  286.         It is suggested  that  you  set up a command  file  that  will
  287.         automatically invoke 'se' with the options that you like.
  288.  
  289.         To see how the remaining arguments are treated, type "harg2".
  290.         To return to the general help directory, type "hdir".
  291. SHAR_EOF
  292. fi # end of overwriting check
  293. echo shar: extracting "'b'" '(100 characters)'
  294. if test -f 'b'
  295. then
  296.     echo shar: will not over-write existing file "'b'"
  297. else
  298. cat << \SHAR_EOF > 'b'
  299.  
  300.  
  301.  
  302.                There is no "b" command.
  303.    To return to the command directory, type "hcomdir."
  304.  
  305.  
  306. SHAR_EOF
  307. fi # end of overwriting check
  308. echo shar: extracting "'bang'" '(350 characters)'
  309. if test -f 'bang'
  310. then
  311.     echo shar: will not over-write existing file "'bang'"
  312. else
  313. cat << \SHAR_EOF > 'bang'
  314.  
  315.  
  316.         ! --- exclude on markname
  317.  
  318.         default range                   syntax
  319.           1,$                             !<m>command
  320.         
  321.         Similar to the "x" prefix, except that  "command" is performed
  322.         for all lines in the range that do not have the mark name <m>.
  323.  
  324.         To return to the command directory, type "hcomdir".
  325. SHAR_EOF
  326. fi # end of overwriting check
  327. echo shar: extracting "'bug'" '(413 characters)'
  328. if test -f 'bug'
  329. then
  330.     echo shar: will not over-write existing file "'bug'"
  331. else
  332. cat << \SHAR_EOF > 'bug'
  333.  
  334.             There is a limit (MAXLINE - 2) on the number of characters
  335.         in a line. Se's MAXLINE is currently 512, so this isn't too much
  336.         of a problem.
  337.             If a filename is absent when invoked, all of the
  338.         options are not processed.
  339.  
  340.  
  341.         To go all the way back to the general help display, type "h".    
  342.         To go back to the general help directory, type "hdir."           
  343. SHAR_EOF
  344. fi # end of overwriting check
  345. echo shar: extracting "'c'" '(619 characters)'
  346. if test -f 'c'
  347. then
  348.     echo shar: will not over-write existing file "'c'"
  349. else
  350. cat << \SHAR_EOF > 'c'
  351.           c    -- Change command
  352.  
  353.                default range           syntax
  354.                     .,.                  c
  355.  
  356.         "c"  first  deletes  the range of lines determined by the line
  357.         numbers (default ".,."), then enters append mode so  that  you
  358.         can  type  lines to replace the deleted lines.  Append mode is
  359.         terminated with a dot on a line by itself, as with the  Append
  360.         command. "c:" works as a one line change (i.e. what  is  after
  361.         the colon replaces the current line).
  362.  
  363.         To return to the command directory, type "hcomdir."
  364.         See also   "ha" and "hd"
  365. SHAR_EOF
  366. fi # end of overwriting check
  367. echo shar: extracting "'cc'" '(747 characters)'
  368. if test -f 'cc'
  369. then
  370.     echo shar: will not over-write existing file "'cc'"
  371. else
  372. cat << \SHAR_EOF > 'cc'
  373.  
  374.         Control characters can be used for correcting typing mistakes,
  375.         for correcting commands that have incurred an error message,
  376.         or for editing the edit buffer ("inline editing") via the "v"
  377.         command.  The novice should be told right away that hitting
  378.         the DEL or RUBOUT key is a way to erase an erroneous command.
  379.  
  380.         General Help Directory. . . . . . . . . . . . . . hdir
  381.         Other Control Characters. . . . . . . . . . . . . hccmisc
  382.         Character Insertion Control Characters. . . . . . hcharins
  383.         Termination Control Characters. . . . . . . . . . htermchar
  384.         Character Deletion Control Characters . . . . . . hchardel
  385.         Cursor Motion Control Characters. . . . . . . . . hmotion
  386. SHAR_EOF
  387. fi # end of overwriting check
  388. echo shar: extracting "'ccmisc'" '(415 characters)'
  389. if test -f 'ccmisc'
  390. then
  391.     echo shar: will not over-write existing file "'ccmisc'"
  392. else
  393. cat << \SHAR_EOF > 'ccmisc'
  394.                        Miscellaneous Control Characters
  395.  
  396.          CTRL-Z toggles an indicator that acts as a "shift lock",
  397.          controlling case mapping on alphabetics typed.
  398.  
  399.          CTRL-Q signals the editor that you suspect that for some
  400.          reason the screen is garbaged.  The response is to clear and
  401.          restore the screen.
  402.  
  403.  
  404.          Type "hcc" to get back to the control character directory.
  405. SHAR_EOF
  406. fi # end of overwriting check
  407. echo shar: extracting "'chardel'" '(481 characters)'
  408. if test -f 'chardel'
  409. then
  410.     echo shar: will not over-write existing file "'chardel'"
  411. else
  412. cat << \SHAR_EOF > 'chardel'
  413.                     Character Deletion Control Characters
  414.         Gobble one character
  415.           to left of cursor          CTRL-U
  416.           at cursor                  CTRL-R
  417.         Gobble all characters
  418.           to left of cursor          CTRL-Y
  419.           at and to right of cursor  CTRL-T
  420.           on entire line             DEL (a. k. a. RUBOUT)
  421.  
  422.  
  423.         "hdir" gets you back to the general help directory.
  424.         Type "hcc" to get back to the control character directory.
  425. SHAR_EOF
  426. fi # end of overwriting check
  427. echo shar: extracting "'charins'" '(620 characters)'
  428. if test -f 'charins'
  429. then
  430.     echo shar: will not over-write existing file "'charins'"
  431. else
  432. cat << \SHAR_EOF > 'charins'
  433.                     Character Insertion Control Characters
  434.  
  435.         CTRL-C inserts a blank at the cursor position.
  436.         CTRL-X inserts blanks to the next tab stop at the cursor position.
  437.         CTRL-A toggles Insert Mode.
  438.  
  439.         When Insert Mode is in effect, any printing character typed is
  440.         inserted into the line, with characters at and to the right of
  441.         the cursor moving over to make room.  When Insert Mode is  not
  442.         in effect, any printing character typed will replace (overlay)
  443.         the character at the cursor.
  444.  
  445.  
  446.         To return to the directory of control characters, type "hcc".
  447. SHAR_EOF
  448. fi # end of overwriting check
  449. echo shar: extracting "'colon'" '(355 characters)'
  450. if test -f 'colon'
  451. then
  452.     echo shar: will not over-write existing file "'colon'"
  453. else
  454. cat << \SHAR_EOF > 'colon'
  455.          :    -- Page command
  456.  
  457.               default range           syntax
  458.                     .                 :
  459.  
  460.       ":" is for paging the active area one page (n-1 lines)
  461.       forward.
  462.  
  463.  
  464.        For paging backward, see "hp"
  465.        See also:  "hcc" (control characters) and "hc" (change).
  466.        To return to the command directory, type "hcomdir."
  467. SHAR_EOF
  468. fi # end of overwriting check
  469. echo shar: extracting "'com'" '(589 characters)'
  470. if test -f 'com'
  471. then
  472.     echo shar: will not over-write existing file "'com'"
  473. else
  474. cat << \SHAR_EOF > 'com'
  475.                                    Commands
  476.                                                                          
  477.         When  the "cmd>" prompt appears near the bottom of the screen,
  478.         a command may be typed.  Commands work for the most  part  the
  479.         same way as commands to 'ed', the Unix system text editor with
  480.         which you may be familiar.
  481.  
  482.           To return to the general help directory, type "hdir".          
  483.           For information about specific commands, type "hcomdir".       
  484.           For details on command syntax, type "hcomsyn".                 
  485. SHAR_EOF
  486. fi # end of overwriting check
  487. echo shar: extracting "'comdir'" '(819 characters)'
  488. if test -f 'comdir'
  489. then
  490.     echo shar: will not over-write existing file "'comdir'"
  491. else
  492. cat << \SHAR_EOF > 'comdir'
  493.  
  494.                               Command Directory
  495.  
  496.         The following are the full names of one-letter commands
  497.         Append            Change   Delete   Enter    File     Global
  498.         Help     Insert   Join     marK     Locate   Move     Name
  499.         Option   Page     Quit     Read     Substitute        To
  500.         Undelete oVerlay  Write    eXclude  translYterate
  501.  
  502.         For info about one of these commands, type "h" followed by
  503.         whichever letter is capitalized in the command name above.
  504.  
  505.         Other commands and their help commands are:
  506.             print value   hequal        global on mark   hquote
  507.             miscellany    hz            exclude on mark  htilde
  508.             shell escape  hshell        .serc file       hserc
  509.  
  510.         There are still more commands; to see them type "hspecl".
  511. SHAR_EOF
  512. fi # end of overwriting check
  513. echo shar: extracting "'comsyn'" '(722 characters)'
  514. if test -f 'comsyn'
  515. then
  516.     echo shar: will not over-write existing file "'comsyn'"
  517. else
  518. cat << \SHAR_EOF > 'comsyn'
  519.                                 Command Syntax
  520.  
  521.         A command consists  of  an  optional  list  of  LINE  NUMBERS,
  522.         followed  by a COMMAND LETTER, possibly followed by parameters
  523.         allowed or required for a specific  command.   Preceeding  all
  524.         this,  there  can be a GLOBAL PREFIX preceeded optionally by a
  525.         list  of  line   numbers.   Hence   the   whole   syntax   is:
  526.  
  527.         [[<list>]<global prefix>][<list>]<command letter>[<stuff>]
  528.  
  529.         For general information about commands, type "hcom".
  530.         For information about specific commands, type "hcomdir".
  531.         For GLOBAL PREFIX syntax and semantics, type "hg".
  532.         For LINE NUMBER LIST syntax and semantics, type "hlist".
  533. SHAR_EOF
  534. fi # end of overwriting check
  535. echo shar: extracting "'d'" '(614 characters)'
  536. if test -f 'd'
  537. then
  538.     echo shar: will not over-write existing file "'d'"
  539. else
  540. cat << \SHAR_EOF > 'd'
  541.         d    -- Delete command
  542.  
  543.                default range           syntax
  544.                          .,.           d
  545.  
  546.         "d"  is  used  to  delete  lines of text from the buffer.  The
  547.         lines in the range specified  by  the  line  number  list  are
  548.         deleted.   The  positioning  of the current line pointer after
  549.         execution of the "d" command is controlled by the "d"  option;
  550.         see  "hod".   The  normal  behavior  is to make the first line
  551.         AFTER the lines deleted the new current line.
  552.  
  553.         To return to the command directory, type "hcomdir."
  554.         See also "hod".
  555. SHAR_EOF
  556. fi # end of overwriting check
  557. echo shar: extracting "'detab.c'" '(1392 characters)'
  558. if test -f 'detab.c'
  559. then
  560.     echo shar: will not over-write existing file "'detab.c'"
  561. else
  562. cat << \SHAR_EOF > 'detab.c'
  563. #ifndef lint
  564. static char RCSid[] = "$Header: detab.c,v 1.1 86/05/06 14:04:37 arnold Locked $";
  565. #endif
  566.  
  567. /*
  568.  * $Log:    detab.c,v $
  569.  * Revision 1.1  86/05/06  14:04:37  arnold
  570.  * Initial revision
  571.  * 
  572.  * 
  573.  */
  574.  
  575. /* Detab - convert tabs to appropriate number of spaces */
  576.  
  577. /* transcribed from Kernighan and Plaguer (Software Tools) */
  578. /* fixed up by Arnold Robbins */
  579.  
  580. #include <stdio.h>
  581.  
  582. #define MAXLINE         132
  583.  
  584. #define repeat          do
  585. #define until(x)        while(!(x))
  586.  
  587. #define tabpos(col, tabs)       ( (col > MAXLINE) ? 1 : tabs[col - 1])
  588.  
  589. main()
  590. {
  591.         int c, i, tabs[MAXLINE], col = 1;
  592.  
  593.         settabs(tabs);
  594.  
  595.         while ((c = getchar()) != EOF)
  596.                 switch(c) {
  597.                 case '\t':
  598.                         repeat
  599.                         {
  600.                                 putchar(' ');
  601.                                 col++;
  602.                         } until(tabpos(col, tabs));
  603.                         break;
  604.  
  605.                 case '\n':
  606.                         putchar('\n');
  607.                         col = 1;
  608.                         break;
  609.  
  610.                 default:
  611.                         putchar(c);
  612.                         col++;
  613.                         break;
  614.                 }
  615. }
  616.  
  617. settabs(tabs)
  618. int tabs[];
  619. {
  620.         int i;
  621.  
  622.         for(i = 1; i <= MAXLINE; i++)
  623.                 tabs[i - 1] = ((i % 8) == 1);
  624.                 /* result is either 1 or 0 */
  625. }
  626. SHAR_EOF
  627. fi # end of overwriting check
  628. echo shar: extracting "'dir'" '(441 characters)'
  629. if test -f 'dir'
  630. then
  631.     echo shar: will not over-write existing file "'dir'"
  632. else
  633. cat << \SHAR_EOF > 'dir'
  634.                                 HELP DIRECTORY
  635.  
  636.  
  637.         To go back to the general description, type        "h"
  638.         For info on the 'se' invoking command, type        "hargs"
  639.         For a discussion of commands,          type        "hcom"
  640.         For a description of 'se's problems,   type        "hbug"
  641.         To learn about control characters,     type        "hcc"
  642.         For info on options,                   type        "ho"
  643.  
  644. SHAR_EOF
  645. fi # end of overwriting check
  646. echo shar: extracting "'e'" '(793 characters)'
  647. if test -f 'e'
  648. then
  649.     echo shar: will not over-write existing file "'e'"
  650. else
  651. cat << \SHAR_EOF > 'e'
  652.           e    -- Enter command
  653.  
  654.                default range           syntax
  655.                          n/a           e[! | x] [file name]
  656.  
  657.         "e" prevents one from having to exit and reenter the editor to
  658.         edit  a  different file.  "e" empties the edit buffer, reads a
  659.         file, and resets the remembered file name.  If [file name]  is
  660.         omitted,  the  remembered  file  name is used.  [!] is used to
  661.         override a check made to prevent you from accidently losing  a
  662.         buffer that has not been saved (same as in "q"). [x]   is used
  663.         to turn tab expansion   on when reading the file in.  Se  will
  664.         expand environment variables that start with  $ in file names.
  665.  
  666.         To return to the command directory, type "hcomdir."
  667.         See also:  "hq"
  668. SHAR_EOF
  669. fi # end of overwriting check
  670. echo shar: extracting "'eh'" '(318 characters)'
  671. if test -f 'eh'
  672. then
  673.     echo shar: will not over-write existing file "'eh'"
  674. else
  675. cat << \SHAR_EOF > 'eh'
  676.     You are standing at the end of a road before a small brick building.
  677.     around you is a forest.  A small stream flows out of the building and
  678.     down a gully.
  679.  
  680.  
  681.     You are inside a building, a well house for a large spring.
  682.  
  683.     There are some keys on the ground here.
  684.  
  685.     There is a shiny brass lamp nearby.
  686.  
  687. SHAR_EOF
  688. fi # end of overwriting check
  689. echo shar: extracting "'elp'" '(881 characters)'
  690. if test -f 'elp'
  691. then
  692.     echo shar: will not over-write existing file "'elp'"
  693. else
  694. cat << \SHAR_EOF > 'elp'
  695.                                      Help
  696.  
  697.         You are using 'se', the  Georgia  Tech screen editor which  is
  698.         based upon the editor described in the book SOFTWARE TOOLS, by
  699.         Brian W.  Kernighan  and  P.   J.   Plauger   (Addison-Wesley,
  700.         1976).   The  screen-oriented  modifications (and some others)
  701.         are by  Jack  Waugh and  Perry  Flinn.  Dan Forsyth translated
  702.         the Ratfor into C.  Arnold Robbins modified the editor to  use
  703.         the Berkeley termlib library, making the editor terminal inde-
  704.         pendant.  Most of this  'help' is  courtesy  of Bob  Gordon of
  705.         Prime  Research, as  amended by  Arnold Robbins.  The descrip-
  706.         tion before you now  is  invoked by the  "h" (help) command.
  707.  
  708.         For a description of the 'help' command, type "hh".
  709.         Find out what the help command can tell you - type "hdir".
  710.  
  711.  
  712. SHAR_EOF
  713. fi # end of overwriting check
  714. echo shar: extracting "'equal'" '(306 characters)'
  715. if test -f 'equal'
  716. then
  717.     echo shar: will not over-write existing file "'equal'"
  718. else
  719. cat << \SHAR_EOF > 'equal'
  720.          =    -- Display Line Number command
  721.  
  722.               default range           syntax
  723.                    .                  =
  724.  
  725.       "=" is for determining the number of the current line
  726.       that you are editing.
  727.  
  728.  
  729.  
  730.        To return to the command directory, type "hcomdir."
  731.        See also:  "hoa"
  732. SHAR_EOF
  733. fi # end of overwriting check
  734. echo shar: extracting "'f'" '(693 characters)'
  735. if test -f 'f'
  736. then
  737.     echo shar: will not over-write existing file "'f'"
  738. else
  739. cat << \SHAR_EOF > 'f'
  740.         f -- File command
  741.  
  742.              default range              syntax
  743.                   n/a               f [file name]
  744.  
  745.         "f"  is  used to print or reset the name of the current file
  746.         being edited.  f [file name] resets the name for the current
  747.         file.  This filename is used by the "w", "e", and  "r"  com-
  748.         mands  when  no  parameters are provided.  f does not change
  749.         the "ok" toggle.  f with no parameters prints out the remem-
  750.         bered name.  In file names, Se will  expand  any  enviroment
  751.         variables that start with a $.
  752.  
  753.         To  return  to  the  command directory, type "hcomdir."  See
  754.         also:  "he", "hw", "hr", and "hok".
  755.  
  756. SHAR_EOF
  757. fi # end of overwriting check
  758. echo shar: extracting "'g'" '(572 characters)'
  759. if test -f 'g'
  760. then
  761.     echo shar: will not over-write existing file "'g'"
  762. else
  763. cat << \SHAR_EOF > 'g'
  764.           g    -- Global command
  765.  
  766.                default range           syntax
  767.                          1,$           g/pattern/command
  768.  
  769.         "g"  is  used  to perform an editing command on all lines that
  770.         match the "pattern".   "pattern"  is  any  legal  pattern  and
  771.         command is an editor command.  The "x" command is the converse
  772.         of "g" and performs the command on all lines that do not match
  773.         the pattern.  The "/" may be any character.
  774.  
  775.  
  776.         To return to the command directory, type "hcomdir."
  777.         See also:  "hx" and "hpat".
  778. SHAR_EOF
  779. fi # end of overwriting check
  780. echo shar: extracting "'h'" '(531 characters)'
  781. if test -f 'h'
  782. then
  783.     echo shar: will not over-write existing file "'h'"
  784. else
  785. cat << \SHAR_EOF > 'h'
  786.           h    -- Help command
  787.  
  788.                default range           syntax
  789.                          n/a           h[ null | parameter]
  790.  
  791.         Typing  "h"  followed  by any character  string simply displays
  792.         the  contents of the se help script of that name at the top  of
  793.         the  screen  (provided  the  script  exists).  The  scripts are
  794.         files in the directory '/usr/local/lib/se_h'. If the scriptname
  795.         is omitted, "elp" is assumed.
  796.  
  797.         To see a general directory of help scripts, type "hdir".
  798. SHAR_EOF
  799. fi # end of overwriting check
  800. echo shar: extracting "'i'" '(850 characters)'
  801. if test -f 'i'
  802. then
  803.     echo shar: will not over-write existing file "'i'"
  804. else
  805. cat << \SHAR_EOF > 'i'
  806.          i    -- Insert command
  807.  
  808.               default range           syntax
  809.                           .           i
  810.  
  811.         "i"  is  for  inserting new lines of text before a given line.
  812.         If no line number is  typed  before  the  "i",  text  will  be
  813.         inserted  before  the  current  line.   Lines  are continually
  814.         inserted before the original line, which has the  same  effect
  815.         as  append  does.  To signal the end of the inserted text, you
  816.         only need to type  a  "."   on  a  line  by  itself.   Control
  817.         characters  "f",  "v",  "l",  and "k" work differently for "i"
  818.         command than for "v". "i:" works as a one line insert, similar
  819.         to "a:".
  820.  
  821.         To return to the command directory, type "hcomdir."
  822.         See also:  "hcc" (control characters) and  "hc"  (change)  and
  823.         "ha".
  824. SHAR_EOF
  825. fi # end of overwriting check
  826. echo shar: extracting "'j'" '(575 characters)'
  827. if test -f 'j'
  828. then
  829.     echo shar: will not over-write existing file "'j'"
  830. else
  831. cat << \SHAR_EOF > 'j'
  832.  
  833.         j -- Join command
  834.  
  835.                default range           syntax
  836.                          ^,.           j[/string[/]]
  837.  
  838.         "j"  is used to join the specified lines into a single line.
  839.         If "string" is present, it is inserted between each pair  of
  840.         lines  joined.  If not, a single blank is used.  "j/" is the
  841.         same "j//", i.e., no string at all will be inserted  between
  842.         the  joined  lines.   The  "/"  may  be  any character.  The
  843.         trailing delimiter is optional.
  844.  
  845.         To return to the command directory, type "hcomdir."
  846.  
  847. SHAR_EOF
  848. fi # end of overwriting check
  849. echo shar: extracting "'k'" '(386 characters)'
  850. if test -f 'k'
  851. then
  852.     echo shar: will not over-write existing file "'k'"
  853. else
  854. cat << \SHAR_EOF > 'k'
  855.           k    -- marK command
  856.  
  857.                default range           syntax
  858.                          .,.           k<single-character-name>
  859.  
  860.         "k" is used to mark lines with the given name.
  861.         If no character is provided, the current label(s) in the
  862.         range are removed.
  863.  
  864.  
  865.         To return to the command directory, type "hcomdir."
  866.         See also: "hln" and "hn".
  867. SHAR_EOF
  868. fi # end of overwriting check
  869. echo shar: extracting "'l'" '(636 characters)'
  870. if test -f 'l'
  871. then
  872.     echo shar: will not over-write existing file "'l'"
  873. else
  874. cat << \SHAR_EOF > 'l'
  875.  
  876.         l -- Locate command
  877.  
  878.              default range         syntax
  879.                 none                  l
  880.  
  881.         The  Locate  command  places the system name into the status
  882.         line (e.g.  "gatech" or "gitpyr").    This is  so  that  you
  883.         can tell  what  machine you are using from within the screen
  884.         editor.  This is particularly useful for installations  with
  885.         many  machines  that  can run the editor, where you are able
  886.         to  switch back and forth between them, and become  confused
  887.         as to where you are at a given moment.
  888.  
  889.         To return to the command directory, type "hcomdir."
  890.  
  891. SHAR_EOF
  892. fi # end of overwriting check
  893. echo shar: extracting "'list'" '(846 characters)'
  894. if test -f 'list'
  895. then
  896.     echo shar: will not over-write existing file "'list'"
  897. else
  898. cat << \SHAR_EOF > 'list'
  899.                             List (of line numbers)
  900.  
  901.         A  line  number list consists of one or more LINE NUMBERs sep-
  902.         arated with commas or semicolons.  The last two  line  numbers
  903.         in  the  list  usually  specify  the  scope of a command.  For
  904.         example, "5,7d" means delete lines 5 through 7.  If  the  list
  905.         consists  of  only one line number, it is equivalant to a list
  906.         with that line number written twice with a  comma  separating.
  907.         The  sense of the semicolon is to set the CURRENT LINE POINTER
  908.         to the value of the line number before  the  semicolon  before
  909.         evaluating  the  line  number after it, whose value may depend
  910.         upon the value of the current line pointer.
  911.  
  912.         For command syntax, type "hcomsyn".
  913.         For LINE NUMBER syntax and semantics, type "hln".
  914. SHAR_EOF
  915. fi # end of overwriting check
  916. echo shar: extracting "'ln'" '(868 characters)'
  917. if test -f 'ln'
  918. then
  919.     echo shar: will not over-write existing file "'ln'"
  920. else
  921. cat << \SHAR_EOF > 'ln'
  922.                                 Line Numbers
  923.  
  924.         A  LINE  NUMBER  refers  to  a line in the edit buffer.  The
  925.         lines are always numbered sequentially starting with  1.   A
  926.         line  number can be expressed as an integer, as "."  meaning
  927.         the CURRENT LINE, "^" or "-" meaning  the  line  before  the
  928.         current  line,  "$"  meaning  the  last  line,  as a PATTERN
  929.         enclosed in "/" slashes for a forward  scan,  as  a  pattern
  930.         enclosed  in  "?"   question marks for a backward scan, as a
  931.         MARK NAME preceeded by "<" for a backward search or  by  ">"
  932.         for  a forward search, or as any additive combination of the
  933.         above by joining them with operators "+",  "-",  or  nothing
  934.         (meaning "+").
  935.  
  936.         Type "hlist" for line number list syntax.
  937.         For details on scans and searches, type "hscan".
  938.  
  939. SHAR_EOF
  940. fi # end of overwriting check
  941. echo shar: extracting "'m'" '(314 characters)'
  942. if test -f 'm'
  943. then
  944.     echo shar: will not over-write existing file "'m'"
  945. else
  946. cat << \SHAR_EOF > 'm'
  947.           m    -- Move command
  948.  
  949.                default range           syntax
  950.                          .,.           from-here,to-here m there
  951.  
  952.         "m" is used to move lines form one place in the buffer to
  953.         another.
  954.  
  955.  
  956.  
  957.         To return to the command directory, type "hcomdir."
  958.         See also   "ht"
  959. SHAR_EOF
  960. fi # end of overwriting check
  961. echo shar: extracting "'motion'" '(540 characters)'
  962. if test -f 'motion'
  963. then
  964.     echo shar: will not over-write existing file "'motion'"
  965. else
  966. cat << \SHAR_EOF > 'motion'
  967.                        Cursor Motion Control Characters
  968.  
  969.         Moving the cursor one position:
  970.           left              CTRL-H
  971.           right             CTRL-G
  972.           up                CTRL-D
  973.           down              CTRL-K
  974.         Moving to the next tab stop:
  975.           left              CTRL-E
  976.           right             CTRL-I
  977.         Moving all the way to the left:                 CTRL-W
  978.         Moving to the current right end of the line:    CTRL-O
  979.  
  980.         Type "hcc" for general information about control characters.
  981. SHAR_EOF
  982. fi # end of overwriting check
  983. echo shar: extracting "'n'" '(372 characters)'
  984. if test -f 'n'
  985. then
  986.     echo shar: will not over-write existing file "'n'"
  987. else
  988. cat << \SHAR_EOF > 'n'
  989.           n    -- Name command
  990.  
  991.                default range           syntax
  992.                          .,.           n<single-character-name>
  993.  
  994.         "n" is used to uniquely mark a line.  if the same mark name is
  995.         already on other lines, it will be removed from them.
  996.  
  997.  
  998.         To  return to the command directory, type "hcomdir."  See also
  999.         "hk" and "hln"
  1000. SHAR_EOF
  1001. fi # end of overwriting check
  1002. echo shar: done with directory "'se_h'"
  1003. cd ..
  1004. #    End of shell archive
  1005. exit 0
  1006.  
  1007.